package com.spring.action;

import org.springframew0rk.context.Autowired;
import org.springframew0rk.context.Controller;

import com.spring.proxy.DynamicProxy;
import com.spring.proxy.Master;
import com.spring.proxy.Person;
import com.spring.service.StudentService;
import com.spring.service.impl.StudentServiceImpl;
@Controller
public class StudentAction {

	@Autowired
	private StudentService ss;
	

	public StudentService getSs() {
		return ss;
	}
	@Autowired
	public void setSs(StudentService ss) {
		this.ss = ss;
	}
	public String save(){
//		ss = (StudentService) new DynamicProxy().getInstance(new StudentServiceImpl());
		ss.save();
		return "save";
	}
	public String delete(){
		ss.delete();
		return "delete";
	}
}
